<?php
namespace app\index\controller;
use think\Db;
use app\index\model\Admin;

class Index
{
    public function index()
    {
        $data = ['name'=>'thomasyang'];
 //       Db::table('admin')->insert($data);
        $res = Db::table('admin')->select();
        var_dump($res);
    }

    public function hello()
    {
		$admin = Admin::get(1);       
        return view("hello",['name'=>$admin->name]);
    }
}
